java_thrift_library(name='thrift-scala',
  sources=rglobs('*.thrift'),
  compiler='scrooge',
  language='scala',
  rpc_style='finagle',
  dependencies=[
    '3rdparty/jvm/org/apache/thrift:libthrift-0.5.0',
    'scrooge/scrooge-generator-tests/src/test/thrift/relative/dir2:include-scala',
    'scrooge/scrooge-generator-tests/src/test/thrift/relative/dir3:include-scala',
  ],
  include_paths=[
    'scrooge/scrooge-generator-tests/src/test/thrift/relative/dir2',
    'scrooge/scrooge-generator-tests/src/test/thrift/relative/dir3',
  ],
)

java_thrift_library(name='thrift-android',
  sources=rglobs('*.thrift'),
  compiler='scrooge',
  language='android',
  rpc_style='finagle',
  dependencies=[
    '3rdparty/jvm/org/apache/thrift:libthrift-0.5.0',
  ],
  include_paths=[
    'scrooge/scrooge-generator-tests/src/test/thrift/relative/dir2',
    'scrooge/scrooge-generator-tests/src/test/thrift/relative/dir3',
  ],
  default_java_namespace='android_thrift_default_namespace',
)
